package com.zhousb.deviceManager.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhousb.deviceManager.model.bo.UploadBo;
import com.zhousb.deviceManager.model.dto.UploadFileDto;
import com.zhousb.deviceManager.model.entity.CrContractFiles;
import com.zhousb.deviceManager.model.so.ContractPageSo;
import com.zhousb.deviceManager.model.vo.ContractPageVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.multipart.MultipartFile;
//import com.itextpdf.text.DocumentException;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.List;

/**
 * @author zhousb
 * @date 2024/10/23 12:42
 * @description
 */

public interface ContractService {
    IPage<ContractPageVo> page(Page<?> page, @Param("so") ContractPageSo so);
    boolean upload(UploadBo bo) throws  FileNotFoundException;
    UploadFileDto uploadFile(MultipartFile files) throws IOException;
    List<UploadFileDto> listFile(String contractId);
}
